<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
		<title>Yming博客系统</title>
		<link rel="stylesheet" type="text/css" href="{:__TMPLPUB__}/Css/style.css"/>
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/check.js"></script>
	</head>
	<body>
		<table width="757" cellspacing="0" cellpadding="0" border="0" align="center">
			<tr align="right" valign="top">
				<td height="149" background="{:__TMPLPUB__}/Images/head.jpg" colspan="2">
					<div id="head">
						{if $GLOBALS['___login___']===false}
							<a href="{:Dyhb::U('index/index')}">首页</a>
							<a href="#">我的博客</a>
							<a href="{:Dyhb::U('user/register')}">博客注册</a>
						{d*else}
							<a>{$GLOBALS['___login___']['regname']}</a>
							<a href="{:Dyhb::U('user/logout')}">安全退出</a>
						{/if}
					</div><!--/head-->
					<div id="login">
						{if $GLOBALS['___login___']===false}
							<form name="login_form" action="{:Dyhb::U('user/login')}" method="post">
									<label for="user_name" class="label_vtl">用户名:</label><input class="input_vtl" type="text" name="user_name" id="user_name"/>
									<label for="user_password" class="label_vtl">密码:</label><input class="input_vtl" type="password" name="user_password" id="user_password"/>
									<label for="string" class="label_vtl">验证码:</label><input class="input_vtl string" type="text" name="string" id="string" />
									<img class="image_vtl" name="img" id="img" src="{:__ROOT__}/blog/Common/imageCheck.php" onclick='this.src=this.src+"?"+new Date().getTime()' style="cursor:pointer;"/>
									<input type="submit" name="sub" value="登陆" onclick="javascript:return login_check();" />
							</form>
						{d*else}
							<a style="margin:0px 50px;font-size:17px;">可以在这里记录你的生活点滴!</a>
						{/if}
					</div><!--/login-->
				</td>
			</tr>
			<!--/header-->
			<!--register-->
			<tr>
				<td  height="496" background="{:__TMPLPUB__}/Images/bg.jpg">
					<div style="margin-top:20px;text-align:center;" >
						<h2 id="_title_">{$__MessageTitle__}</h2>
						<h4 class="infomessage">
							<if condition="!empty($__Message__)">
								<img src="{:__TMPLPUB__}/Images/success64.png"/>
								<div color="blue">{$__Message__}</div>
								<img style="margin:8px;" src="{:__TMPLPUB__}/Images/loading.gif"/>
							</if>
							<if condition="!empty($__ErrorMessage__)">
								<img src="{:__TMPLPUB__}/Images/alert64.png"/>
								<div color="red">{$__ErrorMessage__}</div>
								<img style="margin:8px;" src="{:__TMPLPUB__}/Images/loading.gif"/>
							</if>
						<h4>
							<if condition="empty($seconds)">
							{~$seconds=3}
							</if>
						<p class="marginbot" id="__JumpUrl__">
							<if condition="!empty($__CloseWindow__)">
								系统将在<font color="blue"><span id="__Second__" color="blue">{$seconds}</span></font>秒后自动关闭，如果不想等待，直接点击<font color="blue"><a href="{$__JumpUrl__}">这里</a></font>关闭
							</if>
							<if condition="empty($__CloseWindow__)">
								<a href="{$__JumpUrl__}">系统将在<font color="red"><span id="__Second1__">{$seconds}</span></font>秒后自动跳转，如果不想等待，直接点击这里</font></a>
							</if>
						</p>
					</div>
				</td>
			</tr>
		</table>
		<script type="text/javascript">
				var nTime="{$seconds}";
				var DefaultUrl="{$__JumpUrl__}";
				var Hand=setInterval(redirection,1000);
				function redirection(){
					document.getElementById("__Second1__").innerHTML=--nTime;
					if(nTime==0){
						clearInterval(Hand);
						if(DefaultUrl!=""){
							window.location.href=DefaultUrl;
						}
					}
				}
		</script>
	</body>
</html>
